package helloworld.delegate.teacher;

import helloworld.admin.bean.TeacherAdminBean;
import helloworld.admin.service.teacher.TeacherListService;
import helloworld.admin.service.teacher.TeacherListServiceException;
/**
 *
 * @author TUYEN-DM
 * @version $Revision:   $ $Date: 2009/05/13  $
 */
public class TeacherListDelegate 
{

	public TeacherListDelegate() 
	{
	}

	public TeacherAdminBean[] findTeachers(String centerName) throws TeacherListServiceException
	{
		//Generally a EJB lookup on ServiceLocator goes here.
		//For simplicity, Customer List Service is just a POJO in our case
		
		TeacherListService custListService = new TeacherListService();
		return custListService.findTeachers(centerName);
	}
}